import {defineStore} from "pinia";

export const useUserStore = defineStore('user', {
  state: () => ({
    user: {
      name: 'John Doe',
      email: 'john.doe@example.com',
      avatar: 'https://via.placeholder.com/150',
    },
  }),
  getters: {
    getUser: (state) => state.user,
  },
  actions: {
    updateUser(user: any) {
      this.user = user;
    },
  },
});